<template>
	<view class="main">
		<view class="box" style="position: relative;" v-for="item in tag">
			<navigator :url="'../album/album?abId='+item.abId" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 2;opacity: 0;"> </navigator>
			<view style="text-align: center;font-size: 30rpx;line-height: 30px;">{{item.abName}} - 热度:{{item.abLook}}</view>
			<view style="line-height: 180rpx;text-align: center;overflow: hidden;width: 100%;height: 150rpx;">{{item.abMessage}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				tag:[]
			}
		},
		onShareAppMessage(res) {
			return {
			   title: "收集互联网情侣头像、动漫头像、男生头像、女生头像，提供给用户免费获取。",			  
			   path: "/pages/albumAll/albumAll"
			}
		},
		onShow() {
			uni.showTabBar()
		},
		onReady() {
			var that = this;
			uni.request({
				url:"https://app.waghost.com/api/album/albumall",
				method:"GET",
				success(va) {
					that.tag=va.data.data
				}
			})
		}
	}
</script>

<style scoped>
	.main{
		width: 100%;
		height: auto;
		box-sizing: border-box;
		padding: 30rpx;
	}
	.box{
		margin-top:40rpx;
		width: 100%;
		height: 280rpx;
		border-radius: 15rpx;
		box-sizing: border-box;
		padding-left: 60rpx;
		box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
		padding-right: 60rpx;
	}
</style>
